package org.example.src.repository;

import org.example.src.entity.Feedback;
import org.example.src.entity.FeedbackType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FeedbackRepository extends JpaRepository<Feedback, Long> {
    List<Feedback> findByStudentId(Long studentId);
    List<Feedback> findByTeacherId(Long teacherId);
    List<Feedback> findByCompanyId(Long companyId);
    List<Feedback> findByFromUserId(Long userId);
    List<Feedback> findByToUserId(Long userId);
    List<Feedback> findByType(FeedbackType type);
}